<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>字符串</title>
	<script>
		var str = '  a  b  ';
		console.log('1' + str.trim() + '2');
		///////
		console.log('java'.startsWith('ja'));
		console.log('java'.endsWith('w'));
	</script>
</head>
<body>
	
</body>
</html>